/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package csse3004.GD.PAdmin;

import java.util.ArrayList;

/**
 *
 * @author Tom McNair - S41758984
 */
public class HomeDataNew {
    
    //ID of the Poll Administrator
    private int adminID;
    
    //List of Lists (each item in the array is a list of Creator ID's for a Poll)
    private ArrayList<ArrayList<Integer>> creatorID;
    //List of Poll ID's
    private ArrayList<Integer> pollID;
    //List of Poll Name's
    private ArrayList<String> pollName;

    public int getAdminID() {
        return adminID;
    }

    public void setAdminID(int adminID) {
        this.adminID = adminID;
    }

    public void addCreator(int pollID, int creatorID) {
        this.creatorID.get(pollID).add(creatorID);
    }
    
    public void addCreators(ArrayList<Integer> creatorIDs) {
        this.creatorID.add(creatorIDs);
    }
    
    public void setCreators(ArrayList<ArrayList<Integer>> creatorID) {
        this.creatorID = creatorID;
    }
    
    public ArrayList<ArrayList<Integer>> getAllCreators() {
        return creatorID;
    }
    
    public ArrayList<Integer> getCreators(int pollID) {
        return creatorID.get(pollID);
    }
    
    public int getCreator(int pollID, int index) {
        return creatorID.get(pollID).get(index);
    }
    
    public void addPollID(int pollID) {
        this.pollID.add(pollID);
    }
    
    public void setPollID(ArrayList<Integer> pollID) {
        this.pollID = pollID;
    }
    
    public int getPollID(int index) {
        return pollID.get(index);
    }
    
    public ArrayList<Integer> getPollIDs() {
        return pollID;
    }
    
    public void addPollName(String name) {
        this.pollName.add(name);
    }
    
    public void setPollName(ArrayList<String> pollName) {
        this.pollName = pollName;
    }
    
    public String getPollName(int index) {
        return pollName.get(index);
    }
    
    public ArrayList<String> getPollNames() {
        return pollName;
    }
    
}
